import javax.xml.transform.sax.SAXSource;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;


public class Tet {
    public static void main(String[] args) throws InterruptedException {

     /*   ReentrantLock reentrantLock = new ReentrantLock();
        Condition condition = reentrantLock.newCondition();
        condition.await();
        condition.signal();
        Object object = new Object();
        object.notify();
        object.wait();
*/

      /*  Hashtable<String, String> hashtable = new Hashtable<>();
        hashtable.put("2222", "222");
        System.out.println("1111");
        ConcurrentHashMap<String, String> concurrentHashMap = new ConcurrentHashMap<>();
        concurrentHashMap.put("1222", null);
        System.out.println("111");*/
        Set<Integer> set = new HashSet<>();

        Iterator<Integer> it = set.iterator();
       set.add(1);
       set.add(2);
               while(it.hasNext()){
                  int a = it.next();
                   System.out.println(a);
               }

        List<Integer> list = new LinkedList<>();
               list.add(1);
               list.add(19);
               list.add(18);
               Iterator<Integer> iterator = list.iterator();
               while(iterator.hasNext()){
                   int c = iterator.next();
                   System.out.println(c);
               }

       /* for(int lem:set){
            System.out.println(lem);
        }*/
        int m  = 2;
        while(--m>0){
            System.out.println("1111");
        }
    }
}